package LogicSide;

import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;

import DBside.JDBCConnection;
import DBside.Tools;


public class Playlist{
	
	
	private static String[] getAttruibutes(ResultSetMetaData resultSetMetaData) {
		try {
			String[] attributes = new String[resultSetMetaData.getColumnCount()];
			
			for(int i = 1; i <= resultSetMetaData.getColumnCount(); i++) {
				attributes[i - 1] = resultSetMetaData.getColumnName(i);
			}   
			return attributes;
		} catch (SQLException e) {
			Tools.printError("getAttruibutes", e);
			return null;
		}
	}
	
}